package com.ojoin.trade.common.utils;

import java.math.BigDecimal;

public class NumberUtils {
	public static long getLongAmountRint(String catchamount) {
		return new BigDecimal(Double.valueOf(catchamount) * 100).setScale(0, BigDecimal.ROUND_HALF_UP).longValue();
	}
	
	public static long getLongAmount(String catchamount) {
		return new BigDecimal(Double.valueOf(catchamount) * 100).longValue();
	}
	
	public static String getStringAmount(double catchamount) {
		return String.valueOf(new BigDecimal(catchamount * 100).longValue());
	}
}
